package routes

import (
	"account/routes/account"
	"account/routes/exchange"
	"account/routes/health"
	"account/routes/market"

	_ "account/docs"

	"github.com/gin-gonic/gin"
	ginSwagger "github.com/swaggo/gin-swagger"
	"github.com/swaggo/gin-swagger/swaggerFiles"
)

// @title account project
// @version 1.0
// @description this is account server.
// @host 127.0.0.1:8080
// @BasePath /api/v1/
func RegisterRouterGroup(router *gin.Engine) {
	RouterGroup := router.Group("api/v1/account")
	router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
	{
		exchange.InitPlatRouter(RouterGroup)
		market.InitMarketRouter(RouterGroup)
		account.InitAccountRouter(RouterGroup)
		health.InitHealthRouter(RouterGroup)
	}
}
